package com.mysql.jdbc.cacheutils;

import java.util.Set;

/**
 * @author  JYM
 * 2017-4-23 下午5:08:48
 */
public class Dataandtb {
	
	//包含数据库链接、用户名、密码、数据库名、表名
	
	private String url;
	
	private String user;
	
	private String password;
	
	private String database;
	
	//仅仅保存表名，没有字段名
	private  Set<String> tableNamesSet ;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDatabase() {
		return database;
	}

	public void setDatabase(String database) {
		this.database = database;
	}

	public Set<String> getTableNamesSet() {
		return tableNamesSet;
	}

	public void setTableNamesSet(Set<String> tableNamesSet) {
		this.tableNamesSet = tableNamesSet;
	}

	@Override
	public String toString() {
		return "Dataandtb [url=" + url + ", user=" + user + ", password="
				+ password + ", database=" + database + ", tableNamesSet="
				+ tableNamesSet + "]";
	}

}
